Frequently Asked Questions
The HTML Help Center is a new site and we welcome your comments and questions.
Please drop us a line and we will try to help answer your HTML questions.
We look forward to hearing from you.
Submit a Question
Question
I created a webpage and I need an advanced HTML code to play music when you
enter my webpage.
Answer
There are several methods of adding music to a web page. There are wav (Waveform Audio ) files
and midi (Musical Instrument Digital Interface) files. Your question relates to background music
for your website. This can be done through the use of a midi file.
Try adding this code:
<embed src="****.mid" autostart=true height=55 width=144> <embed>
**** = name of your midi file.
This code will cause the midi file to play automatically when your web page is loaded. I
caution against this practice since many people find this annoying. To prevent the music from playing
automatically simply remove 'autostart=true'.
Another method of adding music is to use links which are mapped to your midi or wav files.
The following code shows how to use an image to
start the music:
<a href="****.mid"><IMG SRC="image.gif"></a>
Here is a working example that uses a text link instead of an image link:
Monday Night Football Theme(157k)